package com.pro.controller;
import com.pro.pojo.JsMicrocircle;
import com.pro.pojo.JsonData;
import com.pro.service.JsActicleCategroyAddService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * ClassName:JsActicleCategroyAddController
 * Package:com.pro.controller
 * Description:
 *
 * @Date:2021/12/1 下午 4:08
 * @Author: WYH
 */
@Controller
@RequestMapping("/add-micro")
public class JsActicleCategroyAddController {

    @Autowired
    private JsActicleCategroyAddService jsActicleCategroyAddService;

    @RequestMapping("/addMicro")
    @ResponseBody
    public JsonData addMicro(JsMicrocircle jsMicrocircle) {
        Boolean aBoolean = jsActicleCategroyAddService.addMicro(jsMicrocircle);
        return aBoolean != false ? JsonData.buildSuccess(aBoolean):JsonData.buildError("数据格式异常");
    }
}
